<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_09) on Sat Dec 29 12:31:13 CET 2012 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>AttributeModel (gephi 0.8.2 API)</title>
<meta name="date" content="2012-12-29">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="AttributeModel (gephi 0.8.2 API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/AttributeModel.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/gephi/data/attributes/api/AttributeListener.html" title="interface in org.gephi.data.attributes.api"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/gephi/data/attributes/api/AttributeOrigin.html" title="enum in org.gephi.data.attributes.api"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/gephi/data/attributes/api/AttributeModel.html" target="_top">Frames</a></li>
<li><a href="AttributeModel.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.gephi.data.attributes.api</div>
<h2 title="Interface AttributeModel" class="title">Interface AttributeModel</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public interface <span class="strong">AttributeModel</span></pre>
<div class="block">Represents the data model, like a standard database would do. As a database,
 contains a list of tables, where columns are defined. By default, a model
 owns a <b>node</b> and <b>edge</b> table, but more could exist, depending
 of the model implementation.
 <p>
 The model also provides factories that are linked to this model. Use row
 factory to build new rows and value factory to push new values to these
 rows. Columns are manipulated from the <code>AttributeTable</code> class.</div>
<dl><dt><span class="strong">Author:</span></dt>
  <dd>Mathieu Bastian</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/gephi/data/attributes/api/AttributeController.html" title="interface in org.gephi.data.attributes.api"><code>AttributeController</code></a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/gephi/data/attributes/api/AttributeModel.html#addAttributeListener(org.gephi.data.attributes.api.AttributeListener)">addAttributeListener</a></strong>(<a href="../../../../../org/gephi/data/attributes/api/AttributeListener.html" title="interface in org.gephi.data.attributes.api">AttributeListener</a>&nbsp;listener)</code>
<div class="block">Adds <code>listener</code> to the listeners of this table.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/gephi/data/attributes/api/AttributeTable.html" title="interface in org.gephi.data.attributes.api">AttributeTable</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/gephi/data/attributes/api/AttributeModel.html#getEdgeTable()">getEdgeTable</a></strong>()</code>
<div class="block">Returns the <b>edge</b> table.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/gephi/data/attributes/api/AttributeTable.html" title="interface in org.gephi.data.attributes.api">AttributeTable</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/gephi/data/attributes/api/AttributeModel.html#getGraphTable()">getGraphTable</a></strong>()</code>
<div class="block">Returns the <b>graph</b> table.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/gephi/data/attributes/api/AttributeTable.html" title="interface in org.gephi.data.attributes.api">AttributeTable</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/gephi/data/attributes/api/AttributeModel.html#getNodeTable()">getNodeTable</a></strong>()</code>
<div class="block">Returns the <b>node</b> table.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/gephi/data/attributes/api/AttributeTable.html" title="interface in org.gephi.data.attributes.api">AttributeTable</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/gephi/data/attributes/api/AttributeModel.html#getTable(java.lang.String)">getTable</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</code>
<div class="block">Returns the <code>AttributeTable</code> which has the given <code>name</code>
 or <code>null</code> if this table doesn't exist.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/gephi/data/attributes/api/AttributeTable.html" title="interface in org.gephi.data.attributes.api">AttributeTable</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/gephi/data/attributes/api/AttributeModel.html#getTables()">getTables</a></strong>()</code>
<div class="block">Returns all tables this model contains.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/gephi/project/api/Workspace.html" title="interface in org.gephi.project.api">Workspace</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/gephi/data/attributes/api/AttributeModel.html#getWorkspace()">getWorkspace</a></strong>()</code>
<div class="block">Returns the workspace this Attribute model belongs to.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/gephi/data/attributes/api/AttributeModel.html#mergeModel(org.gephi.data.attributes.api.AttributeModel)">mergeModel</a></strong>(<a href="../../../../../org/gephi/data/attributes/api/AttributeModel.html" title="interface in org.gephi.data.attributes.api">AttributeModel</a>&nbsp;model)</code>
<div class="block">Merge <code>model</code> in this model.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/gephi/data/attributes/api/AttributeModel.html#removeAttributeListener(org.gephi.data.attributes.api.AttributeListener)">removeAttributeListener</a></strong>(<a href="../../../../../org/gephi/data/attributes/api/AttributeListener.html" title="interface in org.gephi.data.attributes.api">AttributeListener</a>&nbsp;listener)</code>
<div class="block">Removes <code>listener</code> to the listeners of this table.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/gephi/data/attributes/api/AttributeRowFactory.html" title="interface in org.gephi.data.attributes.api">AttributeRowFactory</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/gephi/data/attributes/api/AttributeModel.html#rowFactory()">rowFactory</a></strong>()</code>
<div class="block">Returns the row factory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/gephi/data/attributes/api/AttributeValueFactory.html" title="interface in org.gephi.data.attributes.api">AttributeValueFactory</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/gephi/data/attributes/api/AttributeModel.html#valueFactory()">valueFactory</a></strong>()</code>
<div class="block">Return the value factory.</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getNodeTable()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNodeTable</h4>
<pre><a href="../../../../../org/gephi/data/attributes/api/AttributeTable.html" title="interface in org.gephi.data.attributes.api">AttributeTable</a>&nbsp;getNodeTable()</pre>
<div class="block">Returns the <b>node</b> table. Contains all the columns associated to
 node elements.
 <p>
 An <code>AttributeModel</code> has always <b>node</b>, <b>edge</b> and
 <b>graph</b> tables by default.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the node table, contains node columns</dd></dl>
</li>
</ul>
<a name="getEdgeTable()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEdgeTable</h4>
<pre><a href="../../../../../org/gephi/data/attributes/api/AttributeTable.html" title="interface in org.gephi.data.attributes.api">AttributeTable</a>&nbsp;getEdgeTable()</pre>
<div class="block">Returns the <b>edge</b> table. Contains all the columns associated to
 edge elements.
 <p>
 An <code>AttributeModel</code> has always <b>node</b>, <b>edge</b> and
 <b>graph</b> tables by default.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the edge table, contains edge columns</dd></dl>
</li>
</ul>
<a name="getGraphTable()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGraphTable</h4>
<pre><a href="../../../../../org/gephi/data/attributes/api/AttributeTable.html" title="interface in org.gephi.data.attributes.api">AttributeTable</a>&nbsp;getGraphTable()</pre>
<div class="block">Returns the <b>graph</b> table. Contains all the columns associated to
 the graph.
 <p>
 An <code>AttributeModel</code> has always <b>node</b>, <b>edge</b> and
 <b>graph</b> tables by default.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the edge table, contains edge columns</dd></dl>
</li>
</ul>
<a name="getTable(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTable</h4>
<pre><a href="../../../../../org/gephi/data/attributes/api/AttributeTable.html" title="interface in org.gephi.data.attributes.api">AttributeTable</a>&nbsp;getTable(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</pre>
<div class="block">Returns the <code>AttributeTable</code> which has the given <code>name</code>
 or <code>null</code> if this table doesn't exist.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - the table's name</dd>
<dt><span class="strong">Returns:</span></dt><dd>the table that has been found, or <code>null</code></dd></dl>
</li>
</ul>
<a name="getTables()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTables</h4>
<pre><a href="../../../../../org/gephi/data/attributes/api/AttributeTable.html" title="interface in org.gephi.data.attributes.api">AttributeTable</a>[]&nbsp;getTables()</pre>
<div class="block">Returns all tables this model contains. By default, only contains
 <b>node</b> and <b>edge</b> tables.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>all the tables of this model</dd></dl>
</li>
</ul>
<a name="valueFactory()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>valueFactory</h4>
<pre><a href="../../../../../org/gephi/data/attributes/api/AttributeValueFactory.html" title="interface in org.gephi.data.attributes.api">AttributeValueFactory</a>&nbsp;valueFactory()</pre>
<div class="block">Return the value factory.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the value factory</dd></dl>
</li>
</ul>
<a name="rowFactory()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rowFactory</h4>
<pre><a href="../../../../../org/gephi/data/attributes/api/AttributeRowFactory.html" title="interface in org.gephi.data.attributes.api">AttributeRowFactory</a>&nbsp;rowFactory()</pre>
<div class="block">Returns the row factory.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the row factory</dd></dl>
</li>
</ul>
<a name="addAttributeListener(org.gephi.data.attributes.api.AttributeListener)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAttributeListener</h4>
<pre>void&nbsp;addAttributeListener(<a href="../../../../../org/gephi/data/attributes/api/AttributeListener.html" title="interface in org.gephi.data.attributes.api">AttributeListener</a>&nbsp;listener)</pre>
<div class="block">Adds <code>listener</code> to the listeners of this table. It receives
 events when columns are added or removed, as well as when values are set.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>listener</code> - the listener that is to be added</dd></dl>
</li>
</ul>
<a name="removeAttributeListener(org.gephi.data.attributes.api.AttributeListener)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeAttributeListener</h4>
<pre>void&nbsp;removeAttributeListener(<a href="../../../../../org/gephi/data/attributes/api/AttributeListener.html" title="interface in org.gephi.data.attributes.api">AttributeListener</a>&nbsp;listener)</pre>
<div class="block">Removes <code>listener</code> to the listeners of this table.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>listener</code> - the listener that is to be removed</dd></dl>
</li>
</ul>
<a name="mergeModel(org.gephi.data.attributes.api.AttributeModel)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mergeModel</h4>
<pre>void&nbsp;mergeModel(<a href="../../../../../org/gephi/data/attributes/api/AttributeModel.html" title="interface in org.gephi.data.attributes.api">AttributeModel</a>&nbsp;model)</pre>
<div class="block">Merge <code>model</code> in this model. Makes the union of tables and
 columns of both models. Copy tables this model don't
 have and merge existing ones. For existing tables, call
 <a href="../../../../../org/gephi/data/attributes/api/AttributeTable.html#mergeTable(org.gephi.data.attributes.api.AttributeTable)"><code>AttributeTable.mergeTable(AttributeTable)</code></a>
 to merge columns.
 <p>
 Columns are compared according to their <code>id</code> and <code>type</code>.
 Columns found in <code>model</code> are appended only if they no column
 exist with the same <code>id</code> and <code>type</code>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>model</code> - the model that is to be merged in this model</dd></dl>
</li>
</ul>
<a name="getWorkspace()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getWorkspace</h4>
<pre><a href="../../../../../org/gephi/project/api/Workspace.html" title="interface in org.gephi.project.api">Workspace</a>&nbsp;getWorkspace()</pre>
<div class="block">Returns the workspace this Attribute model belongs to.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the workspace that owns this Attribute model or null if it is independent from a Workspace</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/AttributeModel.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/gephi/data/attributes/api/AttributeListener.html" title="interface in org.gephi.data.attributes.api"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/gephi/data/attributes/api/AttributeOrigin.html" title="enum in org.gephi.data.attributes.api"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/gephi/data/attributes/api/AttributeModel.html" target="_top">Frames</a></li>
<li><a href="AttributeModel.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2007-2012 <a href="http://consortium.gephi.org">Gephi Consortium</a>. All Rights Reserved.</small></p>
</body>
</html>
